package com.xjscrm.server.web;

import com.xjscrm.common.entity.WwCustomerTags;
import com.xjscrm.server.service.customer.WwCustomerTagsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "客户标签关系管理", tags = "客户标签关系管理")
@RestController
public class CustomerTagsController {

    @Autowired
    private WwCustomerTagsService wwcustomerTagsService;

    @ApiOperation(value = "设置标签", notes = "设置标签", response = Boolean.class)
    @RequestMapping("/bind/customer/tags")
    public Object bindCustomerTags() {
        wwcustomerTagsService.add();
        return true;
    }
}
